from django.contrib import admin
from django.urls import path, include
from rest_framework import routers
from oncall.views import OncallerViewset

router = routers.SimpleRouter()
# 发布任务增删改查
router.register(r"oncallInfo", OncallerViewset, base_name="list")  #查

urlpatterns = [
    path(r"api/", include(router.urls)), ]
